Defect area management system and method for optical storage medium

ABSTRACT

A defect area management system for an optical storage medium including a management part producing a defect area management signal for real-time processing and transmitting the signal along with data to be written; and a write part executing a defect area management of the optical storage media, writing the data, applied by the defect area management signal from the management part, into the optical storage medium so that whenever a light pickup meets a defect block at the time of writing data requiring the real-time processing into the optical storage medium, it does not have to be moved to the spare area, thus reducing the time it takes to move the light pickup and removing shortcomings of the real-time processing.

CROSS REFERENCE TO RELATED APPLICATION

This application is the divisional application of Ser. No. 09/345,380 filed on Jun. 30, 1999, now U.S. Pat. No. 6,771,575, which contents are hereby incorporated by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a rewritable optical storage system and more particularly to a defect area management system and method for an optical storage medium.

2. Discussion of Related Art

An optical storage media is generally divided into a read only memory (ROM), a write once read many (WORM) memory into which data can be written one time, and a rewritable memory into which data can be written several times. Rewritable optical storage media, i.e. optical discs, include rewritable compact discs (CD-RW) and rewritable digital versatile discs (DVD-RW, DVD-RAM, DVD+RW).

The operations of writing and playing back data in rewritable optical discs may be repeated. This repeated process alters the ratio of storage layers for writing data into the optical storage medium from the initial ratio. Thus, the optical discs lose its characteristics and generate an error during recoding/playback. This degradation is indicated as a defect area at the time of formatting, recording on or playing back from an optical storage medium.

Also, the rewritable optical disc may have a defect area due to a scratch on its surface, dirt and dust, or failure during manufacture. Therefore, in order to prevent writing into or reading out of the defect area, management of such defect areas is necessary.

FIG. 1 shows a defect management area (DMA) in a lead-in area and a lead-out area of the optical disc to manage a defect area. Particularly, the data area is divided into groups for the defect area management, where each group is further divided into a user area and a spare area. The user area is where data actually written and the spare area is used when a defect occurs in the user area.

Typically, one disc (e.g. DVD-RAM) has four DMAs, two in the lead-in area and two in the lead-out area. Since managing defect area is important, the same data are held in all four DMAs for data protection. Each DMA includes two blocks and consists of 32 sectors, wherein one block consists of 16 sectors. The first block (DDS/PDL block) of each DMA includes a disc definition structure (DDS) and a primary defect list (PDL), and the second block (SDL block) includes a secondary defect list (SDL).

More specifically, the PDL represents a primary defect data storage area, and the SDL represents a secondary defect data storage area. The PDL stores entries of all defective sectors generated during manufacture and identified during formatting such as initialization or re-initialization. Each entry includes a sector number corresponding to a defective sector and an entry type.

On the other hand, the SDL is arranged by blocks and holds entries of either defective areas which may be generated after initialization or defective areas which cannot be entered in the PDL during initialization. Each entry of the SDL includes an area storing the sector number of a first sector of the block having defective sectors, and an area holding the sector number of a first sector of a replacement block. Defective areas in the data area (i.e., defective sectors or defective blocks) are replaced with new sectors or blocks, respectively by skip defective area technique or linear replacement.

The skip defective area technique is utilized when a defective area or sector is recorded in the PDL. As shown in FIG. 2A, if defective sectors m and n, corresponding to sectors in the user area, are recorded in the PDL, such defective sectors are skipped to the next available sector. By replacing the defective sectors by subsequent sectors, data is written to a normal sector. As a result, the user area into which data is written slips and occupies the spare area in the amount equivalent to the skipped defective sectors.

The linear replacement is utilized when a defective area or block is recorded in the SDL. As shown in FIG. 2B, if defective blocks m and n, corresponding to blocks in either the user or spare area, are recorded on the SDL, such defective blocks are replaced by normal blocks in the spare area and the data to be recorded in the defective block are recorded in an assigned spare area. To achieve the replacement, a physical sector number (PSN) assigned to a defective block remains, while a logical sector number (LSN) is moved to the replacement block along with the data to be recorded. Linear replacement is effective for non real-time processing of data.

FIG. 3 is a partial diagram of an optical disc recording/playback (R/P) device relating to the write operation. The optical disc (R/P) device includes an optical pickup to write data into and playback data from the optical disc; a pickup controller transferring or moving the optical pickup; a data processor either processing and transferring the input data to the optical pickup, or receiving and processing the data reproduced through the optical pickup; an interface; and a micro processor (micom) controlling the components.

Also, a host may be connected to the interface of the optical disc R/P device to transfer commands and data to and from each other. Such host can be any kind of personal computer, and would manage the optical disc R/P device. FIG. 4 shows an optical R/P method.

Referring to FIG. 4, if there is data to be written (Step 401), the host sends both the data to be written and a write command to the optical disc R/P device (Step 402). The write command includes a logical block address (LBA) which designates a write position, and a transfer length which indicates the size of the data to be written.

Upon receiving the data, the optical disc R/P device begins to write the data into a corresponding LBA of the optical disc (Step 403). The optical disc R/P device does not write data into defective areas by utilizing the PDL and SDL, which show defective areas of the optical disc. Thus, the write operation is performed by skipping the physical sector recorded in the PDL or replacing the physical block recorded in the SDL with an assigned block in the spare area.

When the optical disc R/P device completes writing the received data, the optical disc R/P device informs the host of the completion by transferring a write completion signal (Step 403). The host then monitors whether the write command was well executed (Step 404). Finally, the optical disc R/P device sends (Step 405) a command execution report to the host, and the host terminates the data write operation on receipt of the report (Step 406).

However, the above conventional technique has several problems. Because both skipping and linear replacement are utilized, when a defective block is found during data write operation, the defective block may be replaced by an assigned block in the spare area. As a result, the optical pickup must be transferred to the spare area and retransferred back to the user area in order to continue writing the data. The time to transfer and retransfer the optical pickup may become a significant problem in a real-time processing.

Therefore, application of the conventional technique described above would not be effective when real-time writing is required, such as for audio-visual (A/V) use, because of its uniform defect area management.

SUMMARY OF THE INVENTION

Accordingly, an object of the present invention is to solve at least the problems and disadvantages of the related art.

An object of the present invention is to provide a defect area management system with an improved real-time writing for an optical storage medium.

Another object of the present invention is to provide a defect area management system and method for an optical storage medium which generates a write command for real-time processing if there is data for real-time processing and manages defective areas of an optical disc.

Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objects and advantages of the invention may be realized and attained as particularly pointed out in the appended claims.

To achieve the objects and in accordance with the purposes of the invention, as embodied and broadly described herein, a defect area management system for an optical storage medium including a management unit (or host) producing a defect area management signal for real-time processing and transmitting the signal with data to be written; and a write unit (or an optical disc R/P device) executing a defect area management of the optical storage media, and writing the data into the optical storage medium according to the defect area management signal.

In the present invention, the management unit determines whether to output a defect area management signal for real-time processing based upon the input data. The defect area management signal from the management unit is a command prohibiting execution of a linear replacement. Thus, upon receiving the defect area management signal, the write unit writes the input data into an optical disc utilizing the skipping replacement.

A method of managing defective areas of an optical storage medium according to the present invention includes producing a defect area management signal for real-time processing and transmitting the signal with the data to be written, if a real-time processing is required; and executing a defect area management of the optical storage medium and writing the input data into the optical storage medium according to the defect area management signal.

The defect area management includes transmitting data to be written after generating a real-time write command; detecting the volume of data which has not been written during the execution of the real-time write command based upon receipt of information stored in the optical storage medium; and if there is either unwritten data or successively connected data, repeating the step of generating the real-time write command to continue writing. The volume of the unwritten data is detected by utilizing the information of defective blocks which were skipped when writing data into the optical storage medium.

The defect area management signal is a command prohibiting an execution of linear replacement. The defect area management signal includes identification information which indicates real-time data. The step of writing the data into the optical storage medium includes writing the input data according to the real-time write command. If a defective block is found during the writing process, data is written into a following normal block, skipping the defective block.

When writing the data is completed, the information of the defective blocks skipped during the writing is transferred and stored in the optical storage medium. The information of the defective blocks skipped to write data on a following normal block during the data writing is recorded in SDL entries.

According to another embodiment of the present invention, a method of managing defective areas of an optical storage medium with a defect management area includes producing information about the characteristics of data to be written, and transmitting such information with the data to be written; and executing a defective area management of the optical storage medium and writing the input data into the optical storage medium by using the characteristic information of the data.

The characteristic information of the data includes identification information indicating real-time data, and speed information of the input data. While data is written into the optical storage medium, if a defective block is found, data is either written into a normal block following the defective block or written in to a replacement block based upon the characteristic information of the data.

BRIEF DESCRIPTION OF THE ATTACHED DRAWINGS

The invention will be described in detail with reference to the following drawings in which like reference numerals refer to like elements wherein:

FIG. 1 is a structure of a conventional optical disc in the related art;

FIG. 2A shows a skip defective area technique in the related art;

FIG. 2B shows a linear replacement technique in the related art;

FIG. 3 is a block diagram of a conventional disc R/P device in the related art;

FIG. 4 is a control sequence of defect area management for an optical disc in accordance with the related art;

FIG. 5 is a control sequence of defect area management for an optical disc in accordance with the present invention; and

FIG. 6 shows an initialization of a write command for real-time processing in accordance with the present invention.

DETAILED DESCRIPTION OF PREFERRED EMBODIMENT

Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings. FIG. 5 is the control sequence of defect area management for an optical disc in accordance with the present invention, and shows the operation of an optical disc R/P device with a host.

To improve real time processing of data, maintaining compatibility with the conventional command system would be preferable. Accordingly, the present invention further adds a data flag for real-time processing to the conventional command system. As a result, if a defective block is found during a write command for real-time processing, the defective block is skipped rather than replaced.

FIG. 6 shows a preferred embodiment of the present invention. Generally a conventional write command of 12 bytes for writing data into an optical disc by skipping defective blocks during writing or playback is altered in the present invention. More specifically, a reserved area of the write command (the 10th byte) includes a flag indicating the type of data to be written (Wtype). The reserved area may also include information indicating the speed of the data to be written (Wspeed). Such information would be used by discs which have capability to support the flags.

For example, when normal data which does not need real-time writing is input, Wtype flag is set to 0. However, when data requiring real-time processing is input, Wtype flag is set to 1, thereby informing the optical disc R/P device that the data requires real-time processing.

Accordingly, if the Wtype flag within the transferred write command is set to 1, the optical disc R/P device skips a defective block during writing or playback rather than replacing the defective block. Thus, the input data is written into a normal block following the defective block. When the input data does not require real-time processing, the Wtype flag is reset to 0 and the optical disc R/P device allows linear replacement whereby data is written into the spare area.

Also, the Wspeed flag may be set according to the required write speed of the input data and transferred within the write command. The optical disc R/P device determines whether to execute linear replacement by utilizing the Wspeed. Particularly, the speed of data transferred from the host to the optical disc R/P device is recorded into the Wspeed area. The optical disc R/P device then compares the recorded speed of the data transfer with the speed by which the data is being written into the optical disc to determine whether to allow linear replacement.

If the transfer speed of data from the host is close to the writing speed of the data into the optical disc, execution of linear replacement slows down the writing of data, thereby reducing the speed of data transfer and increasing the data transfer time. On the other hand, if the transfer speed is significantly slower than the writing speed, slowing down the writing of data would not affect the data transfer time. Accordingly, when the transfer speed is lower than the writing speed by a predetermined amount, linear replacement is executed, except when real-time processing is required.

The host may determine and control whether to execute linear replacement utilizing the Wtype flag, and/or the optical disc R/P device may determine whether to execute linear replacement utilizing both the Wtype flag and Wspeed.

Referring to FIG. 5, if data to be written in real time, such as digital TV stream data or camcorder data, is input (Step 501), the host generates a real-time write command and sets the Wtype flag to 1. The host then transfers both the data to be written and the write command to the optical disc R/P device (Step 502) through the interface.

Upon receiving the real-time write command, the optical disc R/P device processes the transferred data together with the write command, and writes the data into a designated position (Step 503). The position of the optical disc into which the data is written may be designated using the LBA or may be specified in advance using another command.

The optical disc R/P device determines whether defective areas exist utilizing the PDL and SDL which indicate the defective areas in the optical disc. If a defective block recorded in the SDL is found during the writing of data (Step 504), the optical disc R/P device checks the Wtype flag within the write command. Since the write command is for real-time processing, the Wtype flag would be set to 1.

When the Wtype flag is set to 1, the optical disc R/P device skips the defective block and writes the data into a normal block following the defective block (Step 505). Upon completion of writing the data (Step 506), the optical disc R/P device sends a report back to the host. In the preferred embodiment, if the host requires a current progress during the writing of data, the optical disc R/P device transfers the required information to the host. If there is no request from the host during writing of data, the optical disc R/P device sends a report to the host after data writing is completed.

Accordingly, if the optical disc R/P device determines that the writing of data is completed, it monitors whether there are any R/P defective blocks. A difference exists between the transfer length used by the host to write the real-time data and the actual size of data to be written due to the number of SDL entries skipped during the writing of the data. Thus, if there is at least one skipped defective block, the optical disc R/P device indicates an error and transfers the information of skipped defective blocks to the host (Step 507).

The host monitors whether the optical disc R/P device has appropriately executed the write command and detects the volume of data which had not been written by the real-time write command of Step 502, based upon the received report. Namely, the report includes information such as the number of defective blocks, i.e. the number of SDL entries, skipped during the writing.

The host takes into consideration the number of SDL entries in the next write command. Particularly, the host varies the volume of data to be written in the next write command, in response to the number of SDL entries skipped during the writing. Because the skipped defective blocks cannot be used, the effective size of the disc must be rearranged based upon the skipped defective blocks (Step 508).

If there is either data which could not be written into the designated position of the optical disc due to the skipped defective blocks (Step 509) or continuing data successively connected by the real-time write command (Step 510), the host returns to Step 502 and repeats transferring the real-time write command. If there is no further data to be written or continuing data in Steps 509 and 510, the writing process ends.

However, in the preferred embodiment, if there is no further data to be written or continuing data, the optical disc R/P device moves to the DMA area and indicates in the SDL entries where the skipped defective blocks were registered during the recording, that the data corresponding to the defective blocks has been recorded by skipping the defective blocks. Thus, during playback of the data, the optical pickup need not move to the spare area, but to the normal block following a defective block when a defective block is found through the SDL.

Furthermore, if Wspeed has been set in the write command when a defective block is found in Step 504, a determination whether to allow and execute a linear replacement for data can be made utilizing Wspeed. Particularly, the optical disc R/P device compares the speed of Wspeed to the actual speed at which the data is being written into the optical disc. If a linear replacement would not affect the writing of data, i.e. writing speed faster than the transfer speed, the linear replacement is executed and data corresponding to defective blocks are written into a replacement block in the spare area. If a linear replacement would detrimentally slow down the writing, i.e. writing speed is slightly higher than the transfer speed, a skip defective area technique is executed and data corresponding to defective blocks are written into normal blocks following the defective blocks.

As described above, in the present invention, when data requiring a real-time processing is generated, a real-time write command is sent by which a defective block is skipped and the data corresponding to the defective block is written in a normal block following the defective block. As a result, the optical pickup does not need to move to the spare area whenever a defective block is found, thereby reducing the time it takes the optical pickup to move to and from the spare area. Thus, the present invention improves a real-time processing of data in the optical disc R/P device.

The foregoing embodiments are merely exemplary and are not to be construed as limiting the present invention. The present teachings can be readily applied to other types of apparatuses. The description of the present invention is intended to be illustrative, and not to limit the scope of the claims. Many alternatives, modifications, and variations will be apparent to those skilled in the art. 

1. A method for managing a defective data block of a recording medium, the method comprising: receiving a write command for data recording, the write command comprising a logical block address to designate a recording position, a transfer length information to identify an amount of data to be recorded and write type information for indicating whether or not the real time recording is required, wherein the write command comprises 12 bytes of information including the logical block address of 4 bytes, the transfer length information of 4 bytes and the write type information of 1 bit among 1 byte; determining whether to replace a defective data block with a spare area of the recording medium based on the write type information; replacing the defective data block with the spare area of the recording medium when the write type information indicates that the real time recording is not required, while not replacing the defective data block with the spare area of the recording medium when the write type information indicates that the real time recording is required, as a result of the determination; and generating a defect list including indication information, the indication information being dependent on the write type information, wherein the indication information indicates that the defective data block is not replaced with the spare area when the write type information indicates that the real time recording is required, and alternatively, indicates that the defective data block is replaced with the spare area when the write type information indicates that the real time recording is not required.
 2. The method of claim 1, further comprising: identifying a number of defective data blocks found during the real time recording, in order for use in at least a next recording operation; and updating a remaining recording capacity of the recording medium based on the number of defective data blocks, after recording the data.
 3. The method of claim 1, further comprising: recording the defect list on the recording medium.
 4. The method of claim 3, wherein the recording step records the defect list in a defect management area specified in the recording medium.
 5. The method of claim 1, further comprising: determining the recording position in the recording medium, the amount of data and the real time recording respectively based on the write command.
 6. The method of claim 1, further comprising: recognizing the specified write command to perform the recording of data.
 7. A method for managing a defective data block of a recording medium, the method comprising: receiving a write command for data recording, the write command comprising a logical block address to designate a recording position, a transfer length information to identify an amount of data to be recorded and a write type information to indicate that real time data recording is required, wherein the write command comprises twelve bytes of information including the write type information of 1 bit among 1 byte; determining the recording position in the recording medium, the amount of data and the real time recording respectively based on the write command; controlling the recording of the data such that an optical pickup does not jump to a spare area of the recording medium to replace a defective data block; and recording a defect list on the recording medium, the defect list including an indication information to indicate that the defective data block is not replaced with the spare area when the write type information indicates that the real time data recording is required, the indication information being different from the write type information and type of the recoded data but dependent on the write type information.
 8. The method of claim 7, wherein the recording the defect list records the defect list in a defect management area specified in the recording medium.
 9. The method of claim 7, wherein the write command comprises 12 bytes of information including the logical block address of 4 bytes, the transfer length information of 4 bytes and the write type information of 1 bit among 1 byte, further comprising: recognizing the specified write command to control the recording of the data.
 10. The method of claim 9, wherein the write command further includes a write speed information to specify the recording speed of data to be recoded, further comprising: performing a linear replacement to the defective data block when data transfer speed is lower than the recording speed and real time processing is not required.
 11. A system for managing a defective data block of a recording medium, the system comprising: a recording/reproducing device configured to receive a write command for real time recording and record data on the recording medium, the write command comprising a logical block address information to designate a recording position, a transfer length information to identify an amount of data to be recorded and write type information to indicate that real time data recording is required, the write command comprising twelve bytes of information that includes the write type information of 1 bit among 1 byte, and to perform the recording operation to not replace the defective data block with a spare area of the recording medium during the real time recording, and record a defect list on the recording medium, the defect list including an indication information to indicate that the defective data block is not replaced when the write type information indicates that the real time data recording is required, the indication information being different from the write type information and type of the recoded data but dependent on the write type information; and a host device, operatively coupled to the recording/reproducing device through interface, configured to transmit the write command to the recording/reproducing device, and to control the recording/reproducing device to record the data according to the write command, wherein the recording/reproducing device is configured to recognize the write command received from the host device to perform the recording operation in response to the write command and determine the recording position in the recording medium, the amount of data and the real time recording respectively based on the write command.
 12. The system of claim 11, wherein the recording/reproducing device is configured to send a report including information to specify a number of defective data blocks found during the real time recording to the host device, and the host device is configured to recognize an amount of the recorded data based on the information and update the remaining capacity of the recording medium.
 13. The system of claim 11, wherein the write command comprises 12 bytes of information including the logical block address of 4 bytes, the transfer length information of 4 bytes and the write type information of 1 bit among 1 byte, and the recording/reproducing device is configured to recognize the specified write command to perform the recording operation.
 14. The system of claim 11, wherein the write command comprises 12 bytes of information, the write type information being present on 10th byte number, starting from byte 0 in the byte number, and the type information comprising 1 bit in the 10^(th) byte number, and the recording/reproducing device is configured to recognize the specified write command to perform the recording operation.
 15. The system of claim 11, wherein the host device is configured to transmit the write command including write type information to indicate that the real time recording is not required, alternatively, and the recording/reproducing is configured to perform the recording operation to replace the defective data block with the spare area of the recording medium during the non real time recording, and to record a defect list on the recording medium, the defect list including an indication information to indicate that the defective data block is replaced.
 16. The system of claim 11, wherein the write command further includes a write speed information to specify the recording speed of data to be recorded, and the recoding/reproducing device is configured to perform a linear replacement when data transfer speed is lower than the write speed and real time processing is not required.
 17. A method for managing a defective data block of a recording medium, the method comprising: receiving a write command for real time recording, the write command comprising a logical block address to designate a recording position, a transfer length information to identify an amount of data to be recorded and write type information to indicate that real time data recording is required, wherein the write command comprising 12 bytes of information including the write type information of 1 bit among 1 byte; performing a recording operation of the data in such a manner that a defective data block is not replaced with a spare area of the recording medium, during the real time recording; and storing an identification information to indicate that the defective data block is not replaced with a spare area when the write type information indicates that the real time data recording is required, the identification information being different from the write type information and type of the recorded data but dependent on the write type information.
 18. The method of claim 17, wherein the performing step includes a step of skipping a defective data block and recording data in a next available block.
 19. The method of claim 17, further comprising: determining the recording position in the recording medium, the amount of data and the real time recording respectively based on the write command, before the recording operation.
 20. The method of claim 17, further comprising: identifying a number of defective data blocks found during the real time recording, in order for use in a next recording.
 21. The method of claim 17, wherein the write command comprises the logical block address of 4 bytes, the transfer length information of 4 bytes and the type information of 1 bit among 1 byte, among the 12 bytes, further comprising: recognizing the specified write command to perform the recording operation.
 22. The method of claim 17, wherein the write command comprises the write type information being present on 10th byte number, further comprising: recognizing the specified write command to perform the recording operation.
 23. An apparatus for managing a defective data block, comprising: an optical pickup configured to record data on the recording medium; and a controller configured to receive a write command for recording data, the write command comprising a logical block address to designate a recording position, a transfer length information to identify an amount of data to be recorded and a write type information to indicate that real time data recording is required, the write command comprising 12 bytes of information that includes the write type information of 1 bit among 1 byte, to determine the recording position in the recording medium, the amount of data and the real time recording respectively based on the write command, to control the optical pickup to record the data such that the optical pickup does not jump to a spare area to replace a defective data block to a spare area of the recording medium, and to create a defect list on the recording medium, the defect list including an indication information to indicate that the defective data block is not replaced with the spare area when the write type information indicates that the real time data recording is required, the indication information being different from the write type information and type of the recoded data but dependent on the write type information.
 24. The apparatus of claim 23, wherein the controller is configured to control the optical pickup to record the defect list in a defect management area specified in the recording medium.
 25. The apparatus of claim 23, wherein the write command comprises the logical block address of 4 bytes, the transfer length information of 4 bytes and the write type information of 1 bit among 1 byte, and the controller is configured to recognize the specified write command to control the optical pickup.
 26. The apparatus of claim 25, wherein the write command further includes a write speed information to specify the recording speed of data to be recorded, and the controller is configured to control the optical pickup to perform a linear replacement to the defective data block when data transfer speed is lower than the recording speed and real time processing is not required.
 27. An apparatus for managing a defective data block, comprising: a recording/reproducing unit configured to record data on the recording medium; and a controller configured to receive a write command to record data, the write command comprising a logical block address to designate a recording position, a transfer length information to identify amount of data to be recorded and write type information to indicate whether real time data recording is required, the write command comprising 12 bytes of information that includes the write type of information of 1 bit among 1 byte, to perform a recording operation of the data in such a manner that a defective data block is not replaced with a spare area of the recording medium when the write type information indicates that the real time recording is required while the defective block is replaced with the spare area of the recording medium when the write type information indicates that the real time recording is not required, and to create an indication information to indicate whether or not the defective data block is replaced with a spare area according to a value of the write type information, the indication information being different from the write type information and type of the recoded data but dependent on the write type information.
 28. The apparatus of claim 27, wherein the controller is configured to control the recording/reproducing unit to skip a defective data block and record data in a next available block.
 29. The apparatus of claim 27, wherein the controller is configured to determine the recording position in the recording medium, the amount of data and the real time recording respectively based on the write command, before the recording operation, thereby control the recording/reproducing unit.
 30. The apparatus of claim 27, wherein the controller is configured to identify a number of defective data blocks found during the real time recording, in order for use in a next recording.
 31. The apparatus of claim 27, wherein the write command comprises the logical block address of 4 bytes, the transfer length information of 4 bytes and the write type information of 1 bit among 1 byte, and the controller is configured to recognize the specified write command to perform the recording operation.
 32. The apparatus of claim 27,wherein the write command comprises the write type information being present on 10th byte number starting from 0 byte number, and the controller is configured to recognize the specified write command to perform the recording operation.
 33. A system for managing a defective data block, comprising: a recording/reproducing device configured to record data to a recording medium, the recording/reproducing device being configured to receive a write command, the write command including a logical block address to designate a recording position in the recording medium, a transfer length information to identify an amount of main data to be recorded and a write type information to identify whether the real time recording is required, to determine whether to replace a defective data block with a spare area of the recording medium based on at least the write type information, and to record a defect entry including indication information on the recording medium, the indication information indicating whether or not the defective data block is replaced with a spare area according to a value of the write type information; and a host device, operatively coupled to the recording/reproducing device through an interface, and configured to control the recording of data, the host device being configured to transmit the write command and the data to be written to the recording/reproducing device through the interface, the write command comprising 12 bytes of information, which includes the logical block address of 4 bytes, the transfer length information of 4 bytes and the write type information of 1bit among 1 byte, wherein the recoding/reproducing device is configured to recognize the specified write command to determine at least the write type, and to perform the recording operation such that the defective data block is not replaced with the spare area of the recording medium when the write command identifies that the real time recording is required, while the defective data block is replaced with the spare area of the recording medium when the write command identifies that the real time recording is not required.
 34. The system of claim 33, wherein the recording/reproducing device is configured to record a defect entry including a location of the defective data block and an indication information for specifying whether the defective data block is replaced with the spare area, in response to the recording operation, the indication information being different from the write type information of the write command and type of the recoded data but dependent on the write type information, and the indication information indicates that the defective data block is not replaced with the spare area, when the recording/reproducing device receives the write command including the write type information to identify that the real time recording is required.
 35. The system of claim 34, wherein the indication information indicates that the defective data block is replaced with the spare area, when the recording/reproducing device receives the write command including the write type information to identify that the real time recording is not required.
 36. The system of claim 33, wherein the recording/reproducing device comprises: an optical pickup unit configured to record the data on the recording medium, a data processor configured to process the data and transfer the processed data to the optical pickup unit, and a control unit configured to control the recording operation of data.
 37. The system of claim 33, wherein the host device is configured to transmit the write command comprising 12 bytes of information, which includes the type information being present on 10th byte number starting from 0 byte number, and the recoding/reproducing device is configured to recognize the specified write command to perform the recording operation.
 38. An apparatus for managing a defective data block, comprising: a recording/reproducing unit configured to record data to a recording medium; and a control unit, operatively coupled to the recording/reproducing unit, configured to control the recording of data, to receive a write command, the write command including a logical block address to designate a recording position in the recording medium, a transfer length information to identify an amount of main data to be recorded and a write type information to identify whether the real time recording is required, and to determine whether to replace a defective data block with a spare area of the recording medium based on the write command, and to control the recording/reproducing unit according to the determination, the write command comprising 12 bytes of information, which includes the logical block address of 4 bytes, the transfer length information of 4 bytes and the write type information of 1bit among 1 byte, to recognize the specified write command to determine at least the write type, to control the recording/reproducing unit such that the defective data block is not replaced with the spare area of the recording medium when the write command identifies that the real time recording is required, while the defective data block is replaced with the spare area of the recording medium when the write command identifies that the real time recording is not required, and to generate a defect entry including indication information, the indication information indicating whether or not the defective data block is replaced with the spare area according to a value of the write type information.
 39. The apparatus of claim 38, wherein the control unit is configured to control the recording/reproducing unit to record a defect entry including a location of the defective data block and the indication information for specifying whether the defective data block is replaced with the spare area, in response to the recording operation, the indication information being different from the write type information of the write command and type of the recoded data but dependent on the write type information, and the indication information indicates that the defective data block is not replaced to the spare area, when the control unit receives the write command including the write type information to identify that the real time recording is required.
 40. The apparatus of claim 39, wherein the indication information indicates that the defective data block is replaced to the spare area, when the control unit receives the write command including the write type information to identify that the real time recording is not required.
 41. The apparatus of claim 38, wherein the control unit is configured to receive the write command comprising 12 bytes of information, which includes the type information being present on 10th byte number starting from 0 byte number, and to recognize the specified write command to control the recording/reproducing unit according to the write command. 